package cn.cjxy.demo.mapper;

import cn.cjxy.demo.domain.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    //根据用户名查询用户
    User findByUsername(String username);
    //动态模糊查询
    List<User> findAll(String username,String address);

    User findById(Integer id);

    void update(User user);
}
